home *** CD-ROM | disk | FTP | other *** search
- #ifndef BRMATH_H
- #define BRMATH_H
- //========================================================================================
- //
- // File: BRMath.h
- // Release Version: $ 1.0d1 $
- //
- // Creation Date: 4/2/93
- //
- // COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED -- RIGHTS
- // RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT NOTICE IS
- // PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
- //
- // THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
- // CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
- // EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
- //
- // RESTRICTED RIGHTS LEGEND
- // Use, duplication, or disclosure by the Government is subject to restrictions as set
- // forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and Computer
- // Software clause at DFARS 252.227-7013. Symantec Corporation, 10201 Torre Avenue,
- // Cupertino, CA 95014.
- //
- //========================================================================================
-
- template<class tType>
- tType BR_Minimum(tType a, tType b) { return a<b ? a : b; };
-
- template<class tType>
- tType BR_Maximum(tType a, tType b) { return a>b ? a : b; };
-
- template<class tType>
- tType BR_Absolute(tType a) { return a<0 ? -a : a; };
-
- #endif
-